package fi.helsinki.cs.ohtu10k.schedule;

import org.joda.time.DateTime;


/**
 * Factory class for ScheduleCourses.
 * @author Thomas Nyman
 *
 */
public final class ScheduleCourseFactory {
	
	/**
	 * Constructs new ScheduleCourse with the specified properties.
	 * @param startDate	Start date of course.
	 * @param endDate	End date of course.
	 * @param name		Name of course.
	 * @param abbr		Abbreviation of course.
	 * @return New ScheduleCourse with specified properties.
	 * @throws IllegalArgumentException
	 */
	public static ScheduleCourse getScheduleCourse(DateTime startDate, DateTime endDate, String name, String abbr) 
		throws IllegalArgumentException {
		return new PeriodCourse(startDate, endDate, name, abbr);
	}
	
}
